package cn.iocoder.yudao.module.system.dal.mysql.config;

import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.system.controller.admin.messageInfo.vo.FeedBackVO;
import cn.iocoder.yudao.module.system.dal.dataobject.config.InfraConfigDO;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface InfraConfigMapper extends BaseMapperX<InfraConfigDO> {

    default InfraConfigDO selectByKey(String key) {
        return selectOne(new QueryWrapper<InfraConfigDO>().eq("`key`", key));
    }

    int updateJobDayFlow(@Param("dayFlow") Integer dayFlow );

    List<Long> getJobByTimingStatus(@Param("timingStatus") Integer timingStatus,@Param("fixedTime") String fixedTime);

    int updateJobInfoById(@Param("status") String status ,@Param("list") List<Long> list);

    int updateProjectScheduleTypeById(@Param("id") Long id ,@Param("scheduleType") Integer scheduleType);

    List<Map<String,Object>> getScheduleTypeData();


    void updateProjectFeedStatus(@Param("ids") List<Long> ids );

    void saveProjectFeedBack(@Param("list") List<FeedBackVO> list );

    List<FeedBackVO> getEntryStudent();
}
